package com.jinxin.platform.cdelecinspect.service.impl;


import com.jinxin.platform.cdelecinspect.mapper.CdelecinspectStatisticsMapper;
import com.jinxin.platform.cdelecinspect.mapper.pojo.CdelecinspectStatistics;
import com.jinxin.platform.cdelecinspect.service.CdelecinspectStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class CdelecinspectStatisticsServiceImpl implements CdelecinspectStatisticsService {

    @Autowired
    private CdelecinspectStatisticsMapper cdelecinspectStatisticsMapper;

    /**
     * 查询所有记录
     *
     * @return 返回集合，没有返回空List
     */
    public List<CdelecinspectStatistics> listPage(HashMap param) {
    	return cdelecinspectStatisticsMapper.listPage(param);
    }

    public int listCount(HashMap param) {
        return cdelecinspectStatisticsMapper.listCount(param);
    }

    /**
     * 根据主键查询
     *
     * @param id 主键
     * @return 返回记录，没有返回null
     */
    public CdelecinspectStatistics getById(String id) {
    	return cdelecinspectStatisticsMapper.getById(id);
    }
	
    /**
     * 新增，插入所有字段
     *
     * @param cdelecinspectStatistics 新增的记录
     * @return 返回影响行数
     */
    public int insert(CdelecinspectStatistics cdelecinspectStatistics) {
    	return cdelecinspectStatisticsMapper.insert(cdelecinspectStatistics);
    }
	
    /**
     * 新增，忽略null字段
     *
     * @param cdelecinspectStatistics 新增的记录
     * @return 返回影响行数
     */
    public int insertIgnoreNull(CdelecinspectStatistics cdelecinspectStatistics) {
    	return cdelecinspectStatisticsMapper.insertIgnoreNull(cdelecinspectStatistics);
    }
	
    /**
     * 修改，修改所有字段
     *
     * @param cdelecinspectStatistics 修改的记录
     * @return 返回影响行数
     */
    public int update(CdelecinspectStatistics cdelecinspectStatistics) {
    	return cdelecinspectStatisticsMapper.update(cdelecinspectStatistics);
    }
	
    /**
     * 修改，忽略null字段
     *
     * @param cdelecinspectStatistics 修改的记录
     * @return 返回影响行数
     */
    public int updateIgnoreNull(CdelecinspectStatistics cdelecinspectStatistics) {
    	return cdelecinspectStatisticsMapper.updateIgnoreNull(cdelecinspectStatistics);
    }
	
    /**
     * 删除记录
     *
     * @param cdelecinspectStatistics 待删除的记录
     * @return 返回影响行数
     */
    public int delete(CdelecinspectStatistics cdelecinspectStatistics) {
    	return cdelecinspectStatisticsMapper.delete(cdelecinspectStatistics);
    }
	
}